package com.sxt.bus.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 大宝
 * @since 2021-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("bus_sales")
public class Sales implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer customerid;

    private String paytype;

    private Date salestime;

    private String operateperson;

    private Integer number;

    private String remark;

    private Double saleprice;

    private Integer goodsid;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerid() {
        return customerid;
    }

    public void setCustomerid(Integer customerid) {
        this.customerid = customerid;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public Date getSalestime() {
        return salestime;
    }

    public void setSalestime(Date salestime) {
        this.salestime = salestime;
    }

    public String getOperateperson() {
        return operateperson;
    }

    public void setOperateperson(String operateperson) {
        this.operateperson = operateperson;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Double getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(Double saleprice) {
        this.saleprice = saleprice;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public Sales() {
    }

    public Sales(Integer id, Integer customerid, String paytype, Date salestime, String operateperson, Integer number, String remark, Double saleprice, Integer goodsid) {
        this.id = id;
        this.customerid = customerid;
        this.paytype = paytype;
        this.salestime = salestime;
        this.operateperson = operateperson;
        this.number = number;
        this.remark = remark;
        this.saleprice = saleprice;
        this.goodsid = goodsid;
    }

    /**
     * 客户名称
     */
    @TableField(exist = false)
    private String customername;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String goodsname;

    /**
     * 商品规格
     */
    @TableField(exist = false)
    private String size;

    public String getCustomername() {
        return customername;
    }

    public void setCustomername(String customername) {
        this.customername = customername;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public Sales(Integer id, Integer customerid, String paytype, Date salestime, String operateperson, Integer number, String remark, Double saleprice, Integer goodsid, String customername, String goodsname, String size) {
        this.id = id;
        this.customerid = customerid;
        this.paytype = paytype;
        this.salestime = salestime;
        this.operateperson = operateperson;
        this.number = number;
        this.remark = remark;
        this.saleprice = saleprice;
        this.goodsid = goodsid;
        this.customername = customername;
        this.goodsname = goodsname;
        this.size = size;
    }
}
